//
//  KLine.m
//  自定义代码块
//
//  Created by 郭志远 on 2023/12/4.
//

#import "KLine.h"

@implementation KLine

-(void)setMax:(int)max
{
    _max = max;
    _average = (_max + _min) / 2;
}
-(void)setMin:(int)min
{
    _min = min;
    _average = (_max + _min) / 2;
}

-(int)max
{
    return _max;
}
-(int)min
{
    return _min;
}
-(int)average
{
    return _average;
}


@end
